package com.pgybook.front.action.vo;

import org.hibernate.validator.constraints.Email;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created with IntelliJ IDEA.
 * User: feeling
 * Date: 13-11-20
 * Time: 下午1:41
 */
public class LoginVO {
    @NotNull
    @Email
    private String email;

    @NotNull
    @Pattern(regexp = "^[a-zA-Z\\d]{6,10}$")
    private String userPwd;

    private boolean agreeClause;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public boolean isAgreeClause() {
        return agreeClause;
    }

    public void setAgreeClause(boolean agreeClause) {
        this.agreeClause = agreeClause;
    }
}
